package com.bailong.nanny.dao.impl;

import com.bailong.nanny.d.AddUserDao;
import com.bailong.nanny.entity.User;
import com.bailong.nanny.util.JdbcUtils;

public class AddUserDaoImpl implements AddUserDao {
    private String sql = "insert into tb_user(username,realname,address,tel,pic)values(?,?,?,?,?)";
    @Override
    public int addUser(User user) {

        return JdbcUtils.update(sql,user.getUsername(),user.getRealName(),user.getAddress(),user.getTel(),user.getPic());
    }
}
